def finder(x):
    li1 = ["tom","jerry","aobama","tumple","linken","dell","marry","ironman","batman","spiderman"]
    if li1.count(x) == 0:
        print(0)
    else:
        print(1)

finder("tom")

# 很不错，这种思维方式也很巧妙。